package com.chance.cc.crawler.development.command.script.autohome;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

/**
 * @author lt
 * @version 1.0
 * @date 2020-12-09 16:37:37
 * @email okprog@sina.com
 */
public class AutoHomeWebCrawlerScript {
    private static final String domain = "autohome";

    private static final ScriptCommand scriptCommand = new ScriptCommand("192.168.1.215", 9599);

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }

    public static void publishCrawlerNodeScript(){
        HttpPage httpPage = scriptCommand.publishCrawlerScript2Consul(domain);

        System.out.println("发布采集任务脚本：" + httpPage.getRawText());
    }
}
